home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!not-for-mail
- From: gusty@clark.net (Harlan Messinger)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP: argc & argv to globals
- Date: 19 Mar 1996 04:19:52 GMT
- Organization: Clark Internet Services, Inc., Ellicott City, MD USA
- Message-ID: <4ilcl8$3q0@clarknet.clark.net>
- References: <314de637.14063528@news.alpha.net>
- NNTP-Posting-Host: explorer.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
-
- Gabriel Millerd (cthulhu@nomad.net) wrote:
- : Can someone email me a snibit of converting argv[] to a global
- : variable? I have been trying and trying.
- :
- : All I want to do is have argv[] accessable by functions outside of
- : main()
- :
- : Thanks
-
- You can't. argv is the conventional name of a parameter of the function
- main. It is therefore local to main, just as any function's parameters
- are, by name, local to the function.
-
- There may be a way to access the command line by some (globally
- available) means, but that would be platform-dependent.
-
-